package com.bst.bsj.common.dal.ibatis;


import java.util.Map;

import org.springframework.stereotype.Service;

import com.bst.bsj.common.dal.daointerface.SnsFollowForCompanyDAO;
import com.sylinxsoft.tools.dao.impl.CommonBaseDAOImpl;

@Service
public class SnsFollowForCompanyDAOImpl extends CommonBaseDAOImpl implements SnsFollowForCompanyDAO {

  @Override
  public Long getCountsByCom(Long companyNumber) {
    return (Long) getSqlMapClientTemplate().queryForObject(getNameSpace() + ".MS_GETCOUNTBYCOM", companyNumber);
  }

  @Override
  public void deleteByParams(Map<String, Object> paramsMap) {
    getSqlMapClientTemplate().delete(getNameSpace() + ".MS_DELETE", paramsMap);
  }

  @Override
  public void deleteBySeedlingCompany(Map<String, Object> paramsMap) {
    getSqlMapClientTemplate().delete(getNameSpace() + ".MS_DELETE_BY_SEEDLINGCOMPANY", paramsMap);
  }

}
